﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Golf.WebUI.HttpHandler.Public
{
    /// <summary>
    ///根据id 获取名称 类
    /// </summary>
    public class GetAllString
    {
        /// <summary>
        /// 获取客户的姓名
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public string GetUserName(int id)
        {
            Golf.Model.Golf_User user = new Golf.Model.Golf_User();
            user = new Golf.BLL.Golf_User().GetModel(id);
            if (user != null && user.Id != 0)
            {
                return user.FristName + " " + user.LastName;
            }
            else
            {
                return "Null";
            }
        }
    }
}
